//
//  GMJsonWriteAndRead.h
//  news
//
//  Created by 雷国敏 on 16/9/27.
//  Copyright © 2016年 lieop. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GMJsonWriteAndRead : NSObject
+ (void)gm_jsonWriteToFileWithDictionary:(id)params andFileName:(NSString*)fileName;

+ (id)gm_jsonReadWithJsonFileName:(NSString*)fileName;

+ (void)gm_removeAllJsonFile;

+ (BOOL)gm_isExistsJsonFileWithFileName:(NSString*)fileName;

+ (void)gm_removeJsonFileWithFileName:(NSString*)fileName;

+ (void)gm_appendDataSeekToEnd:(id)data withFileName:(NSString*)fileName;

+ (void)gm_appendDataSeekToBegin:(id)data withFileName:(NSString*)fileName;

+ (void)gm_jsonWriteToPlistFileWithDictionaryOrArray:(id)params andFileName:(NSString *)fileName;

+ (void)gm_jsonWriteToFileWithPlistName:(NSString*)plistName andFileName:(NSString*)fileName;
@end
